package com.retailshop.shopuser.service.impl;

import com.retailshop.shopuser.entity.StoreConcern;
import com.retailshop.shopuser.mapper.StoreConcernMapper;
import com.retailshop.shopuser.service.StoreConcernService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("storeConcernService")
public class StoreConcernServiceImpl implements StoreConcernService {

    @Autowired
    StoreConcernMapper storeConcernMapper;

    @Override
    public int deleteByPrimaryKey(Integer concernId) {
        return storeConcernMapper.deleteByPrimaryKey(concernId);
    }

    @Override
    public int insert(StoreConcern record) {
        return storeConcernMapper.insert(record);
    }

    @Override
    public int insertSelective(StoreConcern record) {
        return storeConcernMapper.insertSelective(record);
    }

    @Override
    public StoreConcern selectByPrimaryKey(Integer concernId) {
        return storeConcernMapper.selectByPrimaryKey(concernId);
    }

    @Override
    public int updateByPrimaryKeySelective(StoreConcern record) {
        return storeConcernMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(StoreConcern record) {
        return storeConcernMapper.updateByPrimaryKey(record);
    }

    @Override
    public StoreConcern concernStore(int storeId) {
        return storeConcernMapper.concernStore(storeId);
    }

    @Override
    public List<StoreConcern> getConcernStoresByUserNoId(int userNoId) {
        return storeConcernMapper.getConcernStoresByUserNoId(userNoId);
    }
}
